package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.SupplierDao;
import com.ericom.model.Supplier;
@Repository("supplierDao")
public class SupplierDaoHibernate extends GenericDaoHibernate<Supplier, Long> implements
		SupplierDao {
 public SupplierDaoHibernate(){
	 super(Supplier.class);
 }

public List<Supplier> findByName(String name) {
	
	return this.getHibernateTemplate().find("from Supplier where name=?",name);
}
 
}
